/*
Copyright (c) [2019年5月1日] [吴超]
[MBT_studio] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
#pragma once



#include <面/面.h>
#include <物体/物体.h>
#include <材质/预设材质.h>



void f_OB_创建网格物体数据(S_设备环境& ctx, S_物体* ob);
void f_OB_销毁网格物体数据(S_物体* ob);
void f_OB_复制网格物体数据(S_物体* ob, const S_物体* fromOb);


void f_OB_置网格ID面材质(S_物体* ob);
void f_OB_置网格光照面材质(S_物体* ob);
void f_OB_ID网格面材质(S_设备环境& ctx);
void f_OB_单色网格面材质(S_设备环境& ctx);
void f_OB_光照网格面材质(S_设备环境& ctx);


bool on_文件拖放_导入模型(C_Widget* self, const std::vector<std::u16string>& name, E_对话框类型 方式);

void f_OB_加载模型(FILE* f, S_设备环境& ctx);
void f_OB_保存模型(FILE* f);









